package com.ys.entity.kefu;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_GaugeMaintenance", catalog="Id")
public class TpGaugeMaintenance extends BaseEntity<TpGaugeMaintenance> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="Weight", nameJava="weight", typeDataBase="decimal")
	private BigDecimal weight;
	@YsField(nameDataBase="Length", nameJava="length", typeDataBase="decimal")
	private BigDecimal length;
	@YsField(nameDataBase="Width", nameJava="width", typeDataBase="decimal")
	private BigDecimal width;
	@YsField(nameDataBase="Height", nameJava="height", typeDataBase="decimal")
	private BigDecimal height;
	@YsField(nameDataBase="WarehouseAddress", nameJava="warehouseAddress", typeDataBase="varchar")
	private String warehouseAddress;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpGaugeMaintenance setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TpGaugeMaintenance setCode(String code) {
		this.code = code;
		return this;
	}
	public String getName() {
		return name;
	}
	public TpGaugeMaintenance setName(String name) {
		this.name = name;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TpGaugeMaintenance setNum(Integer num) {
		this.num = num;
		return this;
	}
	public BigDecimal getWeight() {
		return weight;
	}
	public TpGaugeMaintenance setWeight(BigDecimal weight) {
		this.weight = weight;
		return this;
	}
	public BigDecimal getLength() {
		return length;
	}
	public TpGaugeMaintenance setLength(BigDecimal length) {
		this.length = length;
		return this;
	}
	public BigDecimal getWidth() {
		return width;
	}
	public TpGaugeMaintenance setWidth(BigDecimal width) {
		this.width = width;
		return this;
	}
	public BigDecimal getHeight() {
		return height;
	}
	public TpGaugeMaintenance setHeight(BigDecimal height) {
		this.height = height;
		return this;
	}
	public String getWarehouseAddress() {
		return warehouseAddress;
	}
	public TpGaugeMaintenance setWarehouseAddress(String warehouseAddress) {
		this.warehouseAddress = warehouseAddress;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpGaugeMaintenance setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpGaugeMaintenance setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpGaugeMaintenance setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpGaugeMaintenance tpGaugeMaintenance(
		String code,
		String name,
		Integer num,
		BigDecimal weight,
		BigDecimal length,
		BigDecimal width,
		BigDecimal height,
		String warehouseAddress,
		Integer status
			) {
		TpGaugeMaintenance entity = new TpGaugeMaintenance();
		entity.setCode(code);
		entity.setName(name);
		entity.setNum(num);
		entity.setWeight(weight);
		entity.setLength(length);
		entity.setWidth(width);
		entity.setHeight(height);
		entity.setWarehouseAddress(warehouseAddress);
		entity.setStatus(status);
		return entity;
	}
}